<?php include_partial('aoiFrontPartials/contentHeader',
	array(
		'nav'=>array(
			array('url'=>url_for('homepage'),'title'=>'Accueil'),
			array('url'=>'','title'=>'R&eacute;servations')
		),
		'title'=>'R&eacute;servations',
		'description'=>'Votre prochain voyage avec Comoros Airways'
	)
); ?>

<section id="content">
	<div class="container">
		
		<div id="mainbody">
			
			<div class="row">
				<div class="span12">
					<form method="POST" action="<?php echo url_for('booking_confirm')?>">
						<input type="hidden" name="step" value="contact"/>
						<input type="hidden" name="flight_type" value="<?php echo $flight_type ?>"/>
						<input type="hidden" name="flight_go" value="<?php echo $flight_go ?>"/>
						<input type="hidden" name="flight_back" value="<?php echo $flight_back ?>"/>

						<h2>Recapitulatif</h2>

						<hr class="bs-docs-separator">

						<h3>Liste des vols</h3>

						<div class="row">
							<?php foreach($flights as $flight): ?>
							<div class="span4 span-box">
								<?php include_partial('aoiFrontPartials/bookingConfirmFlightList', array('flight'=>$flight)) ?>
							</div>
							<?php endforeach; ?>
					  </div>
						
						<h3>Liste des passagers</h3>
						<div class="row">
								<?php
									$index = 0;
								foreach($passenger_infos->getRawValue() as $passenger): ?>
								<div class="span4 span-box">
									<?php include_component('aoiItineraryReservation','bookingPassengerInfos',array('passenger_infos'=>$passenger,'index'=>$index)); ?>
								</div>
								<?php
									$index++;
								endforeach; ?>
						</div>

						<fieldset>
							<input type="submit" class="btn btn-large btn-success" value="Confirmer les vols et les passagers"/>
							<br/><br/>
							<a class="btn" href="<?php echo url_for('booking') ?>">Recommencer la réservation</a>
						</fieldset>
					</form>
				</div>
			</div><!-- end row -->
			
		</div><!-- end mainbody -->
		
	</div><!-- end container -->
</section>